{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n",
      "1\n",
      "2\n",
      "3\n",
      "5\n",
      "8\n",
      "13\n",
      "21\n",
      "34\n"
     ]
    }
   ],
   "source": [
    "n = 10\n",
    "pre = 1\n",
    "ppre = 1\n",
    "\n",
    "value = 1\n",
    "\n",
    "for i in range(1, n):\n",
    "    if i == 1:\n",
    "        value = 1\n",
    "        print(value)\n",
    "        continue\n",
    "    if i == 2:\n",
    "        value = 1\n",
    "        print(value)\n",
    "        continue\n",
    "\n",
    "    value = pre + ppre\n",
    "    ppre = pre\n",
    "    pre = value\n",
    "    print(value)\n",
    "\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
